package com.xframe.domain.task;

import com.xframe.domain.BaseModel;
import com.xframe.xdal.core.annotation.AutoFill;
import com.xframe.xdal.core.annotation.XColumn;
import com.xframe.xdal.core.annotation.XSelectItem;
import com.xframe.xdal.core.annotation.XTable;
import com.xframe.xdal.core.constant.AutoFillType;
import lombok.Data;

/**
 * 上传任务表日志表
 *
 * @author xufeng
 * @version 1.0
 * @date 2023-06-15
 */
@Data
@XTable(value = "sys_import_task_log", label = "上传任务表日志表")
@XSelectItem(keyName = "taskLogId",codeName = "taskLogId",textName = "desc")
public class ImportTaskLog extends BaseModel {

    /**
     * ID
     */
    @AutoFill(AutoFillType.Snowflake)
    @XColumn(name = "task_log_id", primaryKeyFlag = true,uniqueFlag = true,desc = "任务日志ID")
    private Long taskLogId;

    /**
     * 任务ID
     */
    @XColumn(name = "task_id",desc = "任务ID")
    private Long taskId;

    /**
     * 消息
     */
    @XColumn(name = "log_msg",desc = "消息",length = 500)
    private String msg;

    /**
     * 描述
     */
    @XColumn(name = "log_desc",desc = "描述",nullFlag = true,length = 2000)
    private String desc;

    /**
     * 状态 0 = 成功  1 = 失败 2 = 警告
     */
    @XColumn(name = "log_status",desc = "状态")
    private Integer status = 0;

    /**
     * 日志类型 0 = 系统日志  1 = 输出
     */
    @XColumn(name = "log_type",desc = "日志类型")
    private Integer logType = 0;
}
